Repository navigation
tighten: no .blocked.yml; --check and diff --flows answer what it did - #16
Merged
Merged
Conversation
The .blocked.yml beside a tightened policy listed the observed flows the proposal would deny. Nothing read it, and both kinds it held are answered by commands already in the workflow: - Traffic to a port no term covers, or from a source a term already leaves out. Tightening adds and removes no terms, so this is the same for the policy and for the proposal, and `tighten --check` reads it off the policy: the check before a deploy, against the latest traffic. In examples/fleet-zones both entries (jump1 to RDP on dc1 and files1) are exactly what --check reports. - A narrowing that cuts traffic the flows show. `diff --flows` marks it CONTRADICTED with the flows it would cut, and `-o sh` writes it as a comment no grep can run; a hand-narrowed term was flagged so. tighten still computes would-be-blocked flows for --check and prints them under --dry-run. With no side files left, merge-zones, flow-verdict and the LSPR24 block_early.py stop skipping .blocked.yml, .dead.yml and .groups.yml. docs/fleet.md describes the check before a deploy, which no doc mentioned. examples: the 27 LSPR24 .blocked.yml go, and the fleet-zones transcript loses its two lines. LSPR24 gets the check before a deploy as a worked example: make check-live writes reports/check/, each hourly host's night-trained policy checked against the first live hour of d2. dc1 would refuse 1,216 flows from 21 sources, among them dynamic RPC from 15 domain hosts and the unexplained tcp/134. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.blocked.ymllisted the observed flows a proposal would deny. Nothing read it, and the workflow already answers both kinds it held:tighten --checkreads it off the policy: the check before a deploy, against the latest traffic. Inexamples/fleet-zonesboth entries are exactly what--checkreports.diff --flowsmarks it CONTRADICTED with the flows it would cut, and-o shwrites it as a comment.--checkand--dry-runstill list would-be-blocked flows. With no side files left,merge-zones,flow-verdictand LSPR24'sblock_early.pystop skipping.blocked.yml,.dead.ymland.groups.yml.docs/fleet.mdnow describes the check before a deploy, which no doc mentioned. Examples: LSPR24's 27 files go, and the fleet-zones transcript loses two lines.The check before a deploy, worked on LSPR24.
make check-livewritesreports/check/: each of the five hourly hosts' night-trained policies (r2-tightened) checked against the first live hour of d2. It shows what a diff of two policies cannot, traffic to ports no term covers. dc1 would refuse 1,216 flows from 21 sources: dynamic RPC from the other DC and 14 domain hosts, the organisers' Kerberos and LDAP from the DMZ, and the unexplainedtcp/134. The README gets a table of all five.LSPR24
make clean allon this branch reproduces the committed outputs,make check-liveis deterministic, andexamples/check.shand the tests pass.🤖 Generated with Claude Code